import { $baseApi } from "@/utils/http-instance"

export const $getTicketDetail = (id: string) => $baseApi.get(`ticket-sku-sales/get-of-retail/${id}`)

export const $getTicketListPrice = (id: string, start_date: string, end_date: string) =>
	$baseApi.get(`ticket-sku-sales/list-price-of-retail/${id}`, { start_date, end_date })

export const $getContactsList = () => $baseApi.get("contacts/list-of-own")

export const $addContacts = (params: any) => $baseApi.post("contacts/add-of-own", params)

export const $updateContacts = (id: number, params: any) => $baseApi.post(`contacts/update-of-own/${id}`, params)

export const $createTicket = (params: any) => $baseApi.post("hy-order-bills/shop-create-ticket", params)
